package com.xcq.mall.mapper;

import com.xcq.mall.entity.Goods;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author CQ.Xi
 * @since 2022-10-20
 */
public interface GoodsMapper extends BaseMapper<Goods> {

    @Select("select * from cy_goods where city_id=#{cityId} limit #{size} offset #{page}")
    List<Goods> getGoodsListsByPage(Integer page, Integer size, Integer cityId);
}
